呼叫各位老大|小弟有事请教...希望老大能解决...asp 程序问题

来源:百度知道 编辑:UC知道 时间:2024/06/05 10:15:38
呼叫各位老大|小弟有事请教...希望老大能解决...
各位老大好.

能否在注册确认页面上加上一段代码,

同时将指定数据能自动写入数据库中另一个字段里面去吗?

比如说新建字段名 message 内包括以下几组数据.

id author incept content

id为数值自动编号

author为固定数字或文字 可在后台控制.

incept为刚注册成功的用户名 (调用刚刚注册的用户名)

content为固定文字 可在后台控制.

此代码能否实现,请各位老大赐教
确认页面代码如下:
<%
dim username,password,email,lxrname,dizhi,code,usertel,phone,qq,huitype,sheng,shi,xiang,tjrname,newmessage,userface,author,incept,content
dim rs,sql
username=trim(request("username"))
password=request("password")
email=request("email")
lxrname=trim(request("lxrname"))
dizhi=trim(request("dizhi"))
code=trim(request("code"))
usertel=trim(request("usertel"))
phone=trim(request("phone"))
qq=trim(request("qq"))
huitype=trim(request("huitype"))<

if cstr(session("getcode"))<>cstr(trim(request("verifycode"))) then
response.Write "<script LANGUAGE='javascript'>alert('请输入正确的验证码!');history.go(-1);</script>"
response.end
end if
chkfox(lxrname)
if nothaveChinese(lxrname)=true then
Response.Write"<div align='center'><table cellSpacing='0' cellPadding='0' width='100%' border='0' id='table2'><tr><td align='middle' width=600 class='p9t'><br><br><li>请填写您的中文名字![<a href='javascript:history.back(-1);' style='text-decoration: none'><font color='red'>返回上页</font></a>]<br><br><br><br></td></tr></table></div>"
response.end
end if
if IsValidemail(email)=false then
Response.Write"<div align='center'><t